HipOpenALClip

OpenAL Buffer works in the following way: If the buffer is streamed, it won't be owned by any source, so it will have total control over itself. That way, it can be reused by any source.

Else, the buffer will be owned by the source for decoding, updating, and pulling data.

Constructors

this
this(IHipAudioDecoder decoder, HipAudioClipHint hint)
Undocumented in source.
this
this(IHipAudioDecoder decoder, HipAudioClipHint hint, uint chunkSize)
Undocumented in source.

Members

Functions

createBuffer
HipAudioBufferWrapper createBuffer(ubyte[] data)

Allocates ALuint in the bufferwrapper

destroyBuffer
void destroyBuffer(HipAudioBuffer* buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
onUpdateStream
void onUpdateStream(ubyte[] data, uint decodedSize)
Undocumented in source. Be warned that the author may not have intended to support it.
setBufferData
void setBufferData(HipAudioBuffer* buffer, ubyte[] data, uint size)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

hasBuffer
bool hasBuffer;
Undocumented in source.

Meta